<%-- 
    Document   : info
    Created on : Jul 5, 2011, 11:29:47 AM
    Author     : havn
--%>

<%@include file="page/header.jsp" %>

<form action="InfoServlet" method="post">
    <input type="textbox" name="patientid"> 
    <input type="submit"></input>
</form>
<c:if test="${items != null}">
    <table width="100%">
        <tr style="background-color: #135CAE;color: white">
            <td>ID</td>
            <td>Name</td>
            <td>Username</td>
            <td>Age</td>
        </tr>
        <c:forEach var="item" items="${items}" >
            <tr>
                <td><c:out value="${item.id}"></c:out></td>
                <td><c:out value="${item.hostpital}"></c:out></td>
                <td><c:out value="${item.sick}"></c:out></td>
                <td><c:out value="${item.hostpital}"></c:out></td>
                </tr>
        </c:forEach>
        <tr>
            <td colspan="4" style="text-align: left;font-style: italic"><c:out value="${error}" /></td>
        </tr>
    </table>
</c:if>
<c:out value="${error}" />
<%@include file="page/footer.jsp" %>

